package ${basePackage}.cli.command;

import cn.hutool.core.io.FileUtil;
import picocli.CommandLine.Command;

import java.io.File;
import java.util.List;

/**
 * @author ${author}
 * @description 查看文件列表
 * @createDate ${createTime}
 */
@Command(name = "list", description = "查看文件列表", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable {
    @Override
    public void run() {
        //输入路径
        String inputPath = "${fileConfig.inputRootPath}";
        List<File> fileList = FileUtil.loopFiles(inputPath);
        for (File file : fileList) {
            System.out.println(file);
        }
    }
}
